
package com.benimetum.items;

import java.util.Date;

/**
 *
 * @author Ethem Cem Ozkan
 * @email ethemcem.ozkan@gmail.com
 * No 07110604
 */
public class Topic
{
    private String id;
    private Date date;
    private String text;
    private String header;
    private Reply[] replies;
    private String forumId;
    private Person person;

    public Topic(String id, Date date, String text, String header, Reply[] replies, String forumId, Person person) {
	  this.id = id;
	  this.date = date;
	  this.text = text;
	  this.header = header;
	  this.replies = replies;
	  this.forumId = forumId;
	  this.person = person;
    }

    public String getHeader() {
	  return header;
    }


    public String getForumId() {
	  return forumId;
    }

    public Date getDate() {
	  return date;
    }

    public String getId() {
	  return id;
    }
    
    public int getReplyCount(){
	  return replies.length;
    }
    
    public Reply[] getReplies() {
	  return replies;
    }

    public Person getPerson() {
	  return person;
    }

    public String getText() {
	  return text;
    }

    public void setDate(Date date) {
	  this.date = date;
    }

    public void setId(String id) {
	  this.id = id;
    }

    public void setReplies(Reply[] replies) {
	  this.replies = replies;
    }

    public void setPerson(Person person) {
	  this.person = person;
    }

    public void setText(String text) {
	  this.text = text;
    }

    public void setHeader(String header) {
	  this.header = header;
    }

    public void setForumId(String forumId) {
	  this.forumId = forumId;
    }
    
    
}
